package Concurrency.basic;

public class HelloThread extends Thread{
    @Override
    public void run() {
        System.out.println("thread name: " + Thread.currentThread().getName());
        System.out.println("hello");
    }

    public static void main(String[] args) {
        Thread thread1 = new HelloThread();
        Thread thread2 = new HelloThread();
        thread1.start();;
        thread2.run();
    }
}
